package com.csun.cmny.provider.service;

import com.csun.cmny.base.dto.LoginAuthDto;
import com.csun.cmny.provider.model.domain.UacUser;
import com.csun.cmny.provider.model.dto.wechat.BindMobileDto;

/**
 * @Auther: chisj chisj@foxmal.com
 * @Date: 2021-01-19 10:15
 * @Description:
 */
public interface WeiXinService {

    /**
     * 微信小程序登录
     *
     * @param code      the code
     * @param nickName  the nick name
     * @param avatar    the avatar url
     * @param gender    the gender
     * @param city      the city
     *
     * @return  the uac user
     */
    UacUser login(String application, String code, String nickName, String avatar, String gender, String city);

    /**
     * 绑定手机号
     *
     * @param bindMobileDto the bind mobile dto
     *
     * @return  the int.
     */
    Integer bindMobile(BindMobileDto bindMobileDto, LoginAuthDto loginAuthDto);
}
